package com.java.lesson.lesson5;

public class Demo02 extends Exception{
    private int detial;

    public Demo02(int a) {
        this.detial = a;
    }
    //异常的打印信息
    @Override
    public String toString() {
        return "   异常返回的信息为:Demo02{" +
                "detial=" + detial +
                '}';
    }

}
